package cool.webstudy.admin.constant.enums.rescode;

import lombok.extern.slf4j.Slf4j;

/**
 * @author 莫振双
 * @date 2025/1/23 12:15
 * @description: 赛事与参赛队伍关联关系管理模块返回码枚举
 */
@Slf4j
public enum CompetitionTeamResCodeEnum implements BaseResCodeEnum{
    RC_ERROR_CREATE("120001","赛事与队伍关联关系创建失败！"),
    RC_ERROR_QUERY_TEAM_COUNT("120002","获取参赛队伍数量失败！"),
    RC_ERROR_QUERY_PARAM_MISS("120003","赛事与队伍关联关系查询参数缺失！"),
    RC_ERROR_QUERY("120004","赛事与队伍关联关系查询失败！"),
    RC_ERROR_BATCH_UPDATE_FLAG("120005","批量更新队伍flag值失败！"),
    RC_ERROR_EXIST_RECORD("120006","存在队伍已经参加过该赛事，请重新创建赛事或移除已参加过该赛事的队伍！"),
    RC_ERROR_BATCH_UPDATE_LOGIN_INFO("120007","批量更新队伍登录信息失败！"),
    RC_ERROR_RECORD_NOT_EXIST("120008","赛事与队伍关联关系记录不存在！"),
    RC_ERROR_TEAM_NOT_IN_COMPETITION("120009","队伍不在赛事中！"),
    RC_ERROR_SCORE_INVALID("120010","分数无效！"),
    RC_ERROR_SCORE_COMPUTE_FAIL("120010","分数计算失败！"),
    RC_ERROR_BATCH_UPDATE_SCORE_FAIL("120010","批量更新分数事变！"),
    ;
    private String code;
    private String msg;
    CompetitionTeamResCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    @Override
    public String code() {
        return code;
    }

    @Override
    public String msg() {
        return msg;
    }
}
